<?php

class index extends Controller{

	function __construct() {
		parent::__construct();
	}

	function index() {
		$this->view->render('page/index');
	}
	function details(){
		$this->view->render('page/index');
	}

	function singup (){
		$this->loadModel('signup');
		$name = 'signup_model';
		$this->_modelSignup = new $name;
		$this->_modelSignup->xhrInsert();
	}
	function login(){

		$this->loadModel('login');
		$name = 'login_model';
		$this->_modelLogin = new $name;
		$this->_modelLogin->login();
	}
	function newPlaceS1(){
		$this->loadModel('newPlaceS1');
		$name = 'newPlaceS1_model';
		$this->_modelNewplaceS1 = new $name;
		$this->_modelNewplaceS1-> newPlaceS1();
	}
	function newPlaceS2(){
		$this->loadModel('newPlaceS2');
		$name = 'newPlaceS2_model';
		$this->_modelNewplaceS2 = new $name;
		$this->_modelNewplaceS2-> newPlaceS2();
	}
	function uploadIMG(){
		$this->loadModel('uploadIMG');
		$name = 'uploadIMG_model';
		$this->_modelUploadIMG = new $name;
		$this->_modelUploadIMG-> uploadIMG();
	}
}
?>